﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ThreadingHelpers.PeriodicalEngine
{
    public class WrongStatesTransferException : Exception
    {
        PeriodicalInvokerStatus StatusFrom { get; set; }
        PeriodicalInvokerStatus StatusTo { get; set; }

        public WrongStatesTransferException(PeriodicalInvokerStatus statusFrom, PeriodicalInvokerStatus statusTo)
            : base(String.Format("Transfer from status [{0}] to status [{1}] impossible", statusFrom, statusTo))
        {
            StatusFrom = statusFrom;
            StatusTo = statusTo;
        }
    }
}
